<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改施工人员管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-person-edit" th:object="${gysptPerson}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-2 control-label">姓名：</label>
                <div class="col-sm-4">
                    <input name="name" th:field="*{name}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">性别：</label>
                <div class="col-sm-4">
                    <select name="sex" th:field="*{sex}" class="form-control" th:with="type=${@dict.getType('sys_user_sex')}" >
		                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
		            </select>
                </div>
            </div>
            <div class="form-group">  
            	<label class="col-sm-2 control-label">身份证号：</label>
                <div class="col-sm-4">
                    <input name="card" th:field="*{card}" class="form-control" type="text">
                </div>  
                <label class="col-sm-2 control-label">联系电话：</label>
                <div class="col-sm-4">
                    <input name="phone" th:field="*{phone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
<!--                 <label class="col-sm-2 control-label">联系地址：</label> -->
<!--                 <div class="col-sm-4"> -->
<!--                     <input name="address" th:field="*{address}" class="form-control" type="text"> -->
<!--                 </div> -->
                <label class="col-sm-2 control-label">所属班组：</label>
                <div class="col-sm-4">
                	<select name="suosbz" th:field="*{suosbz}" class="form-control" th:with="type=${@dict.getType('gys_banz')}" >
		                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
		            </select>
                </div>
                <label class="col-sm-2 control-label">工种：</label>
                <div class="col-sm-4">
                    <select name="gongz" th:field="*{gongz}" class="form-control" th:with="type=${@dict.getType('gys_gongz')}" >
		                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
		            </select>
                </div>
            </div>
            <div class="form-group">    
                
                <label class="col-sm-2 control-label">开户银行：</label>
                <div class="col-sm-4">
                    <input name="khyh" th:field="*{khyh}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">收款账号：</label>
                <div class="col-sm-4">
                    <input name="skzh" th:field="*{skzh}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                
                <label class="col-sm-2 control-label">紧急联系人：</label>
                <div class="col-sm-4">
                    <input name="jinjlxr" th:field="*{jinjlxr}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">紧急联系人电话：</label>
                <div class="col-sm-4">
                    <input name="jinjlxrdh" th:field="*{jinjlxrdh}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "gcgl/person";
        $("#form-person-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-person-edit').serialize());
            }
        }

    </script>
</body>
</html>